package kr.hkit.info.powerjava.ch20;

public class StringBufferTest {

	public static void main(String[] args) {
		StringBuilder sb = new StringBuilder("Hello");
		System.out.println(sb);
		System.out.println(sb.append("java"));
		
		char[] chars = {'a','b','d','f','s','s',};
		
		System.out.println(sb.delete(6, 10));
		System.out.println(sb.append(chars));
		System.out.println(sb.deleteCharAt(5));
		
		System.out.println(sb.insert(5, ""));
		System.out.println(sb.replace(6, 13, "Happy"));
		
		System.out.println(sb.reverse());
		
	}
}
